XADC Test

Create Vivado Project

In this experiment, the PS communicates with the XADC module on the PL side through the PS-XADC interface, so the original Vivado project does not need to be modified.

Create Vitis Project

In Vitis, right-click to create an application project: File->New->Application Project

image-20250811171906143

Select the Empty Application(C) file and enter the corresponding project name.

VeryCapture_20250620144007

After the application project is created, add the corresponding code to the project.

image-20250723091445874

 

Compile and Debug

After the project is successfully compiled, connect the development board's JTAG to the computer with a Type-C USB cable, and use another Type-C USB cable to connect the development board's PS UART to the computer.

Open the serial debugging tool MobaXterm on the computer and establish a connection with the development board's PS UART.

image-20250623161029210

Enter debug mode in Vitis: Under Debug As, select the first option. Run at full speed to see the debugging information through the serial port.

The debugging results are as follows:

![image-20250722175738025](../pic/xadc/image-20250722175738025.png